# coding=utf-8
import arcpy

aprx = arcpy.mp.ArcGISProject(r'D:\Documents\OneDrive\南昌市道路交通网络\南昌市道路交通网络.aprx')
map = aprx.listMaps()
for m in map:
    lyr = m.listLayers()
    for l in lyr:
        if l.name == '高速公路出口':
            l.visible = False
aprx.save()
